-		<?php         //明星首页链接列表
		function DateDiff($date1, $date2, $unit = "") { //时间比较函数，返回两个日期相差几秒、几分钟、几小时或几天
		switch ($unit) {
			case 's':
			$dividend = 1;
			break;
			case 'i':
			$dividend = 60;
			break;
			case 'h':
			$dividend = 3600;
			break;
			case 'd':
			$dividend = 86400;
			break;
			default:
			$dividend = 86400;
		}
		$time1 = strtotime($date1);
		$time2 = strtotime($date2);
		if ($time1 && $time2)
		return (float)($time1 - $time2) / $dividend;
		return false;
		}  //".$celebrity->getSnapshot_big()."
		  foreach($celebrities as $celebrity)
		  {
		  echo "<div class='hot_links_li'>
			    <div class='hot_img'><a href='#' target='_blank'><img src='/images/img05.jpg' /></a></div>
				<div class='hot_text'>
				   <h3><a href='#'>".$celebrity->getName()."</a></h3>
				   <div class='hot_time'>发布时间".((integer)DateDiff(date("y-m-d H:i:s"),$celebrity->getCreate_time(),"h"))."小时前</div>
				</div>
			  </div>";
          }
		?>